<template>
  <div class="recommend">
    <div v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecommendView',
  components: {},
  props: {
    recommends: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped>
.recommend {
  display: flex;
  justify-content: space-around;
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 5px solid #eee;
}
.recommend img {
  width: 70px;
  margin-bottom: 5px;
}
</style>
